package pers.cz.business;

import pers.cz.mapper.MenuMapper;
import pers.cz.model.Menu;
import pers.cz.pub.AbstractBusiness;

import java.util.List;

/**
 * @program: PostGirl-panent
 * @description: QueryMenuBusiness
 * @author: Cheng Zhi
 * @create: 2021-04-06 10:39
 **/
public class QueryMenuBusiness extends AbstractBusiness {

    public List<Menu> getAllMenuByUserId(Integer userId) {

        List<Menu> menu = this.getMapper().getBean(MenuMapper.class).queryAllMenuByUserId(userId);

        return menu;
    }
}
